<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<jsp:include page="head.jsp" />
<jsp:include page="nav.jsp" />
<body class="page-body  loaded" style="">
<div class="page-container">
    
    
        <div class="main-content">
       <div class="page-title">
          <div class="title-env">
        <div class="jumbotron">
            <h2>添加商品</h2>
        
            <p>
                 <code>您可在此按需添加商品</code>
            </p>
        
        </div>

            <div id="addtype" class="row">
                <div class="col-sm-12">
                    
                  <div class="panel panel-default">
                    <div class="panel-heading">
                      <h3 class="panel-title">平台共有 ${sessionScope.shop } 个商品</h3>
                      
                    </div>
                    <div class="panel-body">
                    <div id="addtype_list" class="row">
                                                            </div>
                      
                      <blockquote class="blockquote blockquote-success">
                      <p style="color:green;">${requestScope.Msg }</p>
                      <p style="color:red;">${requestScope.errorMsg }</p>
                                <form action="${pageContext.request.contextPath }/addShopServelt" method="POST" class="form-inline validate" style="overflow: hidden;">
                           
                                <div class="form-group">
                                  <div class="form-group">
                                    <input type="text" class="form-control" name="name" placeholder="商品名称" data-validate="required">
                                  </div>
                                  <div class="form-group">
                                    <input type="text" class="form-control" name="days" placeholder="使用天数" data-validate="required,number,min[1]">
                                  </div>
                                  <div class="form-group">
                                    <input type="text" class="form-control" name="maxll" placeholder="流量（GB）" data-validate="required,number,min[1]">
                                  </div>
                                  <div class="form-group">
                                    <input type="text" class="form-control" name="km_rmb" placeholder="售价（元）" data-validate="required,number,min[1]">
                                  </div>
                                  <div class="form-group">
                                    <input type="text" class="form-control" name="bz" placeholder="备注" data-validate="required,number,min[1]">
                                  </div>
                                  <button type="submit" class="btn btn-success">添加商品</button>
                                </div>
                                </form>
                        </blockquote>
                            <div class="alert alert-success">
                        <span class="sr-only">Close</span>
                          <a href="${pageContext.request.contextPath }/shopListServlet">查看商品列表</a></div>
                    </div>
                  
                  </div>
                    
                </div>

            </div>
   
            <!-- Main Footer -->
                <!-- Imported styles on this page -->


</div></div></div></div>        </footer>

<jsp:include page="copy.jsp" />
